﻿@model IDictionary<string, DiffPlex.DiffBuilder.Model.DiffPaneModel>
<div class="diffPane">
    <table cellpadding="0" cellspacing="0" class="diffTable">
        @{
            var lines = 0;
        }
        @foreach (var k in Model.Keys)
        {
            foreach (var diffLine in Model[k].Lines)
            {
                lines = diffLine.Position.HasValue ? lines + diffLine.Position.Value : lines;
            <tr>
                <td class="lineNumber">
                    @Html.Raw(lines)
                </td>
                <td>
                    <strong>
                        @Html.Raw(k) :</strong>
                </td>
            </tr>
            <tr title="@Html.Raw(k)">
                <td></td>
                <td class="line @Html.Raw(diffLine.Type.ToString())">
                    <span class="lineText">
                        @Html.Partial("_DiffLine", diffLine)
                    </span>
                </td>
            </tr>
            }
        }
    </table>
</div>
